/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package flange.functions;

/**
 *
 * @author Сергей
 */
public class WordsByDayFunction extends Function2D {
    public WordsNumberFunction x;
    public double c = 50;

    public WordsByDayFunction(Point2D a, Point2D b) {
        super(a,b);
    }

    @Override
    public double getY(double t) {
        //return x.k.getY(t) * (x.xmax - x.getY(t) );
        double k = x.k.getY(t);
        return 2*k/(2*Math.sqrt(k*(t + x.d)*2));
    }

}
